package constant;


/**
 * @ClassName StatusConstant
 * @Description 定义后端返回的所有状态码
 * @Author 23207
 * @Date 2025/4/24 13:34
 * @Version 1.0
 */
public class StatusConstant {
    // 成功状态码
    public static final int SUCCESS = 200;
    public static final String SUCCESS_MSG = "请求成功";

    // 客户端错误状态码
    public static final int BAD_REQUEST = 400;
    public static final String BAD_REQUEST_MSG = "请求参数错误";

    public static final int UNAUTHORIZED = 401;
    public static final String UNAUTHORIZED_MSG = "未授权";

    public static final int FORBIDDEN = 403;
    public static final String FORBIDDEN_MSG = "禁止访问";

    public static final int NOT_FOUND = 404;
    public static final String NOT_FOUND_MSG = "资源未找到";

    // 服务器错误状态码
    public static final int INTERNAL_SERVER_ERROR = 500;
    public static final String INTERNAL_SERVER_ERROR_MSG = "服务器内部错误";

    public static final int SERVICE_UNAVAILABLE = 503;
    public static final String SERVICE_UNAVAILABLE_MSG = "服务不可用";
}

